package org.cll.lagou.study.springbootdemo.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 描述信息:
 * 测试自动注入配置文件属性
 * 默认加载配置文件顺序
 * /resources/application*.yaml
 * /resources/application*.yml
 * /resources/application*.properties
 * 就近原则，以最后加载的为准
 * 宠物
 * @author CLL
 * @version 1.0
 * @date 2020/6/26 18:48
 */
@ToString
//@EnableConfigurationProperties
@Component
@ConfigurationProperties(prefix = "person.pet")
public class Pet {

    /**
     * 宠物类型
     */
    @Getter
    @Setter
    private String type;

    /**
     * 宠物名称
     */
    @Getter
    @Setter
    private String name;



}